import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
    {
        path: '/',
        redirect: { name: 'pageA'},
    },
    {
        path: '/pageA',
        name: 'pageA',
        meta: { keepAlive: true},
        component: () => import('@/views/pageA.vue')
    },
    {
        path: '/pageB',
        name: 'pageB',
        meta: { keepAlive: true},
        component: () => import('@/views/pageB.vue')
    },
    {
        path: '/pageC',
        name: 'pageC',
        meta: { keepAlive: true},
        component: () => import('@/views/pageC.vue')
    },
];

export const router = createRouter({
    history: createWebHashHistory(),
    routes
});
